Ext.define('HRMobile.store.EmployeeStore', {
    extend: 'Ext.data.Store',
     
    config: {
     model: 'HRMobile.model.Employee',
     autoLoad: true,
     grouper: {
         groupFn: function(record) {
             return record.get('empFirstname')[0];
         }
     },
     proxy: {
         type: 'ajax',
         url: 'EmployeeServlet',
         pageParam: 'page',
         reader: {
             type: 'json',
             totalProperty: 'totalCount',
             rootProperty: 'employees',
             successProperty: 'success'
         },
   }
    }
});